{% extends 'base.html' %}
{% block title %}Manage host {{ host.name }}{% endblock %}
{% block list %}
<form action="{{ host.get_absolute_url }}" method="post">
    <table>
    	{% for field in form.visible_fields %}
        	<tr>
        		<td>
        			{% if forloop.first %}
						{% for hidden in form.hidden_fields %}
						{{ hidden }}
						{% endfor %}
					{% endif %}
        			{{ field.errors }}
        			{{ field.label_tag }}:
				</td>
				<td> {{ field }}</td>
			</tr>
		{% endfor %}
            <tr>
				<td></td><td><input type="submit" value="Update"></td>
    		</tr>
    </table>
</form>
<br>
<a href="{% url list-hosts %}" >Back</a>
{% endblock %}
